package com.itgaoshu.hospitalproject.service;

import com.itgaoshu.hospitalproject.bean.Menu;
import com.itgaoshu.hospitalproject.bean.User;

import java.util.List;

public interface MenuService {
    //查询所有菜单   模糊查询
    List<Menu> selectMenuAllList(Menu menu);

    //添加菜单
    int addMenu(Menu menu);

    //删除菜单
    int deleteMenu(int id);

    //修改菜单
    int updateMenu(Menu menu);

    //检查菜单是否有子菜单
    int checkMenuHasChildren(int pid);

    //登录的方法
    User login(String loginname);

    //根据用户id来查询菜单
    List<Menu> selectMenuById(Integer userid);
}
